<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<script type="text/javascript">
function dropAdminCheck(id){
	if(confirm(id + " 회원을 관리자에서 제외하시겠습니까?")){
		location.href = "dropAdmin.action?id="+ id;
		//alert("adminWithdrawMember.action?id="+ id );
	}; 
}
</script>
<h2 class="page_title"><strong>관리자 리스트</strong></h2>
<table>
	<tr height="40">
		<th>no</th>
		<th>id</th>
		<th>name</th>
		<th>age</th>
		<th>gender</th>
		<th>nickname</th>
		<th>phone</th>
		<th>point</th>
		<th>eventCount</th>
		<th>SELETE</th>
		<th>DROPADMIN</th>
	</tr>
	
	<s:iterator value="alist" status="stat">
	<tr height="40" class="align_c">
		<td><s:property value="no"/></td>
		<td><s:property value="id"/></td>
		<td><s:property value="name"/></td>
		<td><s:property value="age"/></td>
		<td><s:property value="gender"/></td>
		<td><s:property value="nickname"/></td>
		<td><s:property value="phone1"/>-<s:property value="phone2"/>-<s:property value="phone3"/></td>
		<td><s:property value="point"/></td>
		<td><s:property value="eventCount"/></td>
		<td><a href="adminMemberInfo.action?id=<s:property value="id"/>"><font color="red"><strong>보기</strong></font></a></td>
		<td><a href="javascript:dropAdminCheck('<s:property value="id"/>');"><font color="red"><strong>DROP</strong></font></a></td>
	</tr>
	</s:iterator>
	<s:if test="alist.size()<=0">
	<tr height="40" class="align_c">
		<td colspan="11" >등록된 관리자가 없습니다.</td>
	</tr>
	</s:if>
</table>
<br />
<p class="align_c"><s:property value="pagingHtml" escape="false"/></p>

